import Vue from "vue";
import App from "./App.vue";

// 引入 Jquery

// import $ from "jquery";
// var $ = require(“jquery”)
// EChart 组件
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;

/**
 * 引入第三方 css
 */
// 引入图标库样式

// // 引入 vue-router 及路由配置
import Router from "vue-router";
import router from "./router";
Vue.use(Router);

// 引入 ElementUI 和主题样式
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);
import "font-awesome/css/font-awesome.min.css";

/**
 * 引入自定义组件，注册 Vue 全局变量
 * 注册方式：Vue.prototype.$appName = 'My App'
 * 调用 App：this.$appName
 */
// Cookie 组件
// import * as Cookie from "@/util/cookie.js";
// Vue.prototype.$Cookie = Cookie;
// Storage 组件
import Storage from "@/util/storage.js";
Vue.prototype.$Storage = Storage;
// Vuex Store 组件
import VuexStore from "@/util/vuexStore.js";
Vue.prototype.$VuexStore = VuexStore;
// Axios Request 组件
import * as Request from "@/util/request.js";
Vue.prototype.$Request = Request;
// 注册过滤器组件
import * as Filters from "@/util/filter.js";
Object.keys(Filters).forEach((key) => {
	Vue.filter(key, Filters[key]);
});
// Common 组件
import * as Common from "@/util/common.js";
Vue.prototype.$Common = Common;
// TestData 组件
import * as TestData from "@/util/testData.js";
Vue.prototype.$TestData = TestData;

// 阴阳历组件 this.$calendar.solar2lunar(2020,05,05);
import calendar from "@/util/LunarDate.js";

Vue.prototype.$calendar = calendar;

/**
 * 引入 css
 */
// 引入图标库样式
import "font-awesome/css/font-awesome.min.css";
// import * as ElementPlusIconsVue from "@element-plus/icons-vue";

Vue.config.productionTip = false;

new Vue({
	router,
	render: (h) => h(App),
}).$mount("#app");
